<?php

	class dbConnection {
		
		/**
		 *
		 * @global String $dbDriver
		 * @global String $server
		 * @global String $user
		 * @global String $password
		 * @global String $database
		 * 
		 * @return ADOConnection db connection
		 * 
		 */
		public static final function getConnection() {
			
			global $dbDriver, $server, $user, $password, $database;
			
			require_once MUKU_DOC_ROOT . 'lib/adodb5/adodb.inc.php';
			$db = ADONewConnection($dbDriver);
			// $db->debug = TRUE;
			$db->Connect($server, $user, $password, $database);
			
			return $db;
			
		}
		
	}

?>
